package com.objectproject.main.model;

import java.sql.Date;
import java.sql.Timestamp;

import com.objectproject.main.enumeration.GenderType;

public class MyUser {
	
	long userId;
	Timestamp regDate;
	String accountFacebook;
	String accountGoogle;
	String accountTwitter;
	String firstName;
	String lastName;
	GenderType gender;
	Date birthDay;
	String email;
	boolean isBlocked;
	int point;
	int defaultLocaleId;
	
	public int getDefaultLocaleId() {
		return defaultLocaleId;
	}
	public void setDefaultLocaleId(int defaultLocaleId) {
		this.defaultLocaleId = defaultLocaleId;
	}


	public Timestamp getRegDate() {
		return regDate;
	}
	public void setRegDate(Timestamp regDate) {
		this.regDate = regDate;
	}
	
	
	public String getAccountFacebook() {
		return accountFacebook;
	}
	public void setAccountFacebook(String accountFacebook) {
		this.accountFacebook = accountFacebook;
	}
	public String getAccountGoogle() {
		return accountGoogle;
	}
	public void setAccountGoogle(String accountGoogle) {
		this.accountGoogle = accountGoogle;
	}
	public String getAccountTwitter() {
		return accountTwitter;
	}
	public void setAccountTwitter(String accountTwitter) {
		this.accountTwitter = accountTwitter;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public GenderType getGender() {
		return gender;
	}
	public void setGender(GenderType gender) {
		this.gender = gender;
	}
	public Date getBirthDay() {
		return birthDay;
	}
	public void setBirthDay(Date birthDay) {
		this.birthDay = birthDay;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public boolean isBlocked() {
		return isBlocked;
	}
	public void setBlocked(boolean isBlocked) {
		this.isBlocked = isBlocked;
	}
	public int getPoint() {
		return point;
	}
	public void setPoint(int point) {
		this.point = point;
	}
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof MyUser){
			if(((MyUser) obj).userId == 0 || ((MyUser)obj).userId == 0){
				return false;
			}else if(((MyUser) obj).userId == this.userId){
				return true;
			}
		}
		return false;

	}
	
	
	
	
	
}
